package com.lovo.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.system.dto.RoleDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<RoleDto> {

    RoleDto queryById(@Param("id") int id);

    List<Integer> selectUserRoleNow(@Param("id") int id);

    List<String> selectRolePer(@Param("ids") List<Integer> ids);

    List<Integer> selectRolePerNow(@Param("id") int id);

    List<Integer> selectRolePerIds(@Param("ids") List<Integer> ids);

}
